﻿using Abp.AutoMapper;
using Akso.Entities;
using Akso.Infrastructure.Data.Annotations;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Akso.DataMaintains.Dto
{
    /// <summary>
    /// 新增、编辑页面显示数据时的Dto对象，可以被其它Dto使用。
    /// </summary>
    [AutoMap(typeof(BillAccount))]
    public class BillAccountEditDto
    {
        public Guid? Id { get; set; }
        [Required]
        [MaxLength(BillAccount.MaxNameLength)]
        public virtual string AccountName { get; set; }
        /// <summary>
        /// 账户类型
        /// </summary>
        [MaxLength(BillAccount.MaxAccountTypeLength)]
        public virtual string AccountType { get; set; }
        public virtual long? AccountTypeId { get; set; }
        /// <summary>
        /// 所属校区
        /// </summary>
        [MaxLength(BillAccount.MaxSchoolLength)]
        public virtual string SchoolName { get; set; }
        public virtual Guid? SchoolId { get; set; }
        /// <summary>
        /// 是否用于前台收费
        /// </summary>
        public virtual bool IsTollAccount { get; set; }
        /// <summary>
        /// 余额
        /// </summary>
        [DecimalPrecision(10, 2)]
        public virtual decimal Balance { get; set; }
        [MaxLength(BillAccount.MaxRemarkLength)]
        public virtual string Remark { get; set; }
    }
}
